package com.ziyun.erp.modules.facilitator.dao;

import com.ziyun.erp.modules.facilitator.entity.FacilitatorSellerRelationEntity;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import java.util.Map;

/**
 * 服务商与商户对应关系
 * 
 * @author jiangli
 * @email 
 * @date 2019-01-04 14:03:38
 */
public interface FacilitatorSellerRelationDao extends BaseMapper<FacilitatorSellerRelationEntity> {

    @Update("UPDATE facilitator_seller_relation SET disabled=1 WHERE audit_status=1 AND parent_user_id=#{parentUserId}")
    int updateDisabled(Integer parentUserId);

    void updateByMap(@Param("map") Map<String, Object> map, @Param("id") Integer id);
}
